#include<stdio.h>
int main()
{
    int num,a,b,c;
    printf("input sanwei z: ");
    scanf("%d",&num);
    if(num<100||num>999)
    {
        printf("input not snanwei z\n");
    }
    else{
        a=num/100;
        b=(num/10)%10;
        c=num%10;
        if(a*a*a+b*b*b+c*c*c==num){
            printf("%d是水花仙数\n",num);
        }else{
            printf("%d不是水花仙数\n",num);
        }
    }
    return 0;
}
